package cn.bqjr.eily.core.serializer;

import cn.bqjr.eily.core.annotation.TransferKV;

/**
 * JSON kv字段序列化接口
 * Created by shan.he on 2017/7/11.
 */
public interface JsonFieldSerializer {
    /**
     * 是否处理此字段
     * @param anno
     * @return
     */
    boolean accept(TransferKV anno);

    /**
     * 序列化字段内容
     * @param anno
     * @param str
     * @return
     */
    String doSerialize(TransferKV anno, String str);
}
